<script type="text/javascript">
function forgotpass(){
	var url= root+'users/forgotpass';
	var email= $('#email').val();
	if(email)
	{
		$.post(
			url,
			$('#fr_forgot').serialize(),
			function(data){
				if(data.st)
				{
					switch(data.st){
						case('SEND'):
							show_popup_user('forgot_password_success');
							break;
						case('SEND_ACTIVE'):
							show_popup_user('active_success');
							break;							
						case('NOT_EXIST'):
							show_popup_user('forgot_password_wrong');
							break;
					}
				}
			},'json'
		);
	}
}
</script>
<div class="popup_forgot_password png">
<form action="" name="fr_forgot" id="fr_forgot" method="post" enctype="multipart/form-data">
	<a href="javascript:void(0)" title="Đóng" class="close_popup" onclick="return hide_popup();"></a>
	<div class="p_content_popup">
		<div class="popup_tt"><img src="<?=PATH_URL.'static/images/'.$folder?>popup/text/quen_mat_khau.png" alt="" align="center" /></div>
		<div class="popup_tt text_forget_pass">Mời bạn nhập địa chỉ email đã dùng để<br/>đăng ký tài khoản. Hệ thống sẽ tự động gửi email<br/>kích hoạt mật khẩu mới đến địa chỉ email đó:</div>
		<div class="popup_ct">
			<div class="username">
				<span>EMAIL ĐĂNG KÝ</span>
				<span style="margin-left:8px;"><input type="text" name="email" id="email" class="p_input"  /></span>		
				<input type="hidden" name="device" id="device" value="true" class="p_input"  />				
			</div>
		</div>
		<div class="button popup_tt">
			<div>
				<span onclick="return forgotpass();" style="cursor:pointer;">
					<img src="<?=PATH_URL.'static/images/'.$folder?>popup/button/btn_kich_hoat.png" alt="" />
				</span>
			</div>
			<div style="margin-top:6px;"><i>Hoặc:</i></div>
			<div style="margin-top:8px;"><span onclick="return show_popup_user('register');" style="cursor:pointer;">
				<img src="<?=PATH_URL.'static/images/'.$folder?>popup/button/btn_dangky_account_new.png" alt="" /></span>
			</div>
		</div>
	</div>
</form>
</div>